package com.accp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.sql.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jack
 * @since 2021-08-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Hotevents implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("keyWord")
    private String keyWord;

    @TableField("hotContent")
    private String hotContent;

    @TableField("searchSum")
    private Integer searchSum;

    @TableField("createDate")
    private Date createDate;
    
    @TableField("uid")
    private int uid;
    
    @TableField(exist=false)
    private Users user;
    
    @TableField(exist=false)
    private List<Comments> comments;
    
    @TableField(exist=false)
    private boolean canEdit;

	@Override
	public String toString() {
		return "Hotevents [id=" + id + ", keyWord=" + keyWord + ", hotContent=" + hotContent + ", searchSum="
				+ searchSum + ", createDate=" + createDate + ", uid=" + uid + ", comments=" + comments + "]";
	}

	

    
}
